package com.shanzmoo.db.order.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 门店订单作废信息
 *
 * @author: Gzhao 2020/12/14
 */
@Data
@ApiModel("门店订单作废信息")
public class OutletOrderCancelDto implements Serializable {

    private static final long serialVersionUID = 1758L;

    @NotBlank(message = "门店订单号不允许为空")
    @ApiModelProperty(value = "门店订单号", example = "A201214193070")
    private String orderNo;

    @Size(max = 100, message = "作废原因文字长度超出限制")
    @NotBlank(message = "作废原因不允许为空")
    @ApiModelProperty(value = "作废原因", example = "客户取消下单")
    private String cancelReason;
}
